package net.osweb.crm.modules.assist.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "assist_votelog")
public class VoteLog implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2038242796560262138L;
	private Integer id;
	private Integer userid;
	private Integer voteid;
	private Timestamp createtime;
	private String comment;

	// Constructors

	/** default constructor */
	public VoteLog() {
	}

	/** full constructor */
	public VoteLog(Integer userid, Integer voteid, Timestamp createtime,
			String comment) {
		this.userid = userid;
		this.voteid = voteid;
		this.createtime = createtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "voteid")
	public Integer getVoteid() {
		return this.voteid;
	}

	public void setVoteid(Integer voteid) {
		this.voteid = voteid;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}